$OpenBSD: patch-scripts_version_sh,v 1.2 2015/11/16 10:26:23 benoit Exp $
--- scripts/version.sh.orig	Wed May 21 15:21:43 2014
+++ scripts/version.sh	Fri Sep  5 14:46:26 2014
@@ -29,6 +29,8 @@
     VERSION="$(git_version || date -u +"%Y-%m-%d" || echo "$VERSION-dev")"
 fi
 
+VERSION=${V}
+
 if [ "$VERSION" != "$(cat "$CACHE_FILE" 2> /dev/null)" ]; then
     sed 's,0\.0\.0,'"$VERSION"',' < "$TEMPLATE_FILE" > "$HEADER_FILE"
     echo "$VERSION" > "$CACHE_FILE" 2> /dev/null
